package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysEmailAttachment;

/**
 * 邮件附件Mapper接口
 */
public interface SysEmailAttachmentMapper {
    /**
     * 查询邮件附件
     * 
     * @param attachmentId 附件ID
     * @return 邮件附件
     */
    public SysEmailAttachment selectSysEmailAttachmentById(Long attachmentId);

    /**
     * 查询邮件附件列表
     * 
     * @param sysEmailAttachment 邮件附件
     * @return 邮件附件集合
     */
    public List<SysEmailAttachment> selectSysEmailAttachmentList(SysEmailAttachment sysEmailAttachment);

    /**
     * 根据邮件日志ID查询附件列表
     * 
     * @param logId 邮件日志ID
     * @return 附件列表
     */
    public List<SysEmailAttachment> selectSysEmailAttachmentsByLogId(Long logId);

    /**
     * 新增邮件附件
     * 
     * @param sysEmailAttachment 邮件附件
     * @return 结果
     */
    public int insertSysEmailAttachment(SysEmailAttachment sysEmailAttachment);

    /**
     * 修改邮件附件
     * 
     * @param sysEmailAttachment 邮件附件
     * @return 结果
     */
    public int updateSysEmailAttachment(SysEmailAttachment sysEmailAttachment);

    /**
     * 删除邮件附件
     * 
     * @param attachmentId 附件ID
     * @return 结果
     */
    public int deleteSysEmailAttachmentById(Long attachmentId);

    /**
     * 批量删除邮件附件
     * 
     * @param attachmentIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysEmailAttachmentByIds(Long[] attachmentIds);

    /**
     * 根据邮件日志ID删除附件
     * 
     * @param logId 邮件日志ID
     * @return 结果
     */
    public int deleteSysEmailAttachmentByLogId(Long logId);
} 